package com.zqx.tokenauth.enums;

import lombok.Getter;

@Getter
public enum TokenEnum implements CodeEnum {
    //封装token的 code和信息
    TOKEN_EXPIRES_HOUR(1L,"过期时间"),
    AUTHORIZATION(101L,"authorization"),
    CURRENT_USER_ID(102L,"CURRENT_USER_ID"),

    ;

    private Long code;

    private String message;

    TokenEnum(Long code, String message) {
        this.code = code;
        this.message = message;
    }
}
